<html>
<head>
    <meta name="layout" content="freshmade">
</head>

<body>
<div id="content-wrapper">
    <div class="center-wrapper">
        <div class="content">
            <div id="main">
                <div class="post">
                    <div class="post-title">
                        <h1><g:message code="expenseDetail.upload"/>: <tmpl:expenseGroupOfOwner/></h1>
                        <g:message code="expense.upload.desc"/>
                        <g:render template="/template/messageBar"/>
                    </div>

                    <div class="post-date">
                        <g:render template="/template/createdBy1"/>
                    </div>
                </div>
                <g:form method="post" action="uploadDo" id="${params.id}" enctype="multipart/form-data">
                    <div id="myform">
                        <div class="field">
                            <div class="key2"><g:message code="expense.upload.sample"/></div>

                            <div class="value">
                                <g:link uri="/download/expense-this-month.xls">
                                    <g:message code='default.download'/></g:link>
                            </div>

                            <div class="hint">
                                请使用模板文件进行上传：
                                <br>Excel文件名可以修改，但请保持2003格式（xls后缀）
                                <br>Excel文件内的表单名不可修改、列名（表单的第一行）不可修改
                            </div>

                            <div class="clear"></div>
                        </div>

                        <div class="field">
                            <div class="key"><g:message code="expense.upload.file"/></div>

                            <div class="value">
                                <input type="file" name="file"/>
                            </div>

                            <div class="hint">
                                不要上传过大的文件
                            </div>

                            <div class="clear"></div>
                        </div>

                        <div class="buttonbar">
                            <input type="submit" class="button" value="Submit"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>
</html>